Method
CompareTo
abstract virtual func CompareTo(other: T) -> int
Declaring type: ComparableTo<T>
Module: System
Assembly: System.Runtime.dll
Source file: ComparableTo.rvn
Defined by ComparableTo<T>.CompareTo · Required implementation (no default).
Interface implementation: Required implementation (no default).
Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than.
Parameters
| Name | Type | Description |
|---|---|---|
other |
T | The other value to compare. |